package cn.com.miao.lynx.common.core.constant

/**
 * CommonConstant
 * @title: CommonConstant
 * @description:
 * @author: dengmiao
 * @create: 2019-12-23 13:33
 **/
class CommonConstant {

    class Response {
        companion object {
            var SUCCESS_MSG = "操作成功"
            var FAIL_MSG = "操作失败"
        }
    }

    object System {
        const val DELETE_FLAG_NORMAL: Int = 0
        const val DELETE_FLAG_DELETE: Int = 1

        const val ROOT_PID: Int = 0
    }

    class MetaField {
        companion object {
            const val FIELD_ID = "id"
            const val FIELD_CREATE_BY = "createBy"
            const val FIELD_CREATE_TIME = "createTime"
            const val FIELD_UPDATE_BY = "updateBy"
            const val FIELD_UPDATE_TIME = "updateTime"
            const val FIELD_DEL_STATUS = "delStatus"
        }
    }

    object Security {
        const val HEADER = "Access-Token"
    }
}
